package com.tebiecloud.store.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tebiecloud.store.client.model.entity.Store;
import com.tebiecloud.common.mybatis.base.service.IBaseService;
import com.tebiecloud.store.client.model.vo.StoreVO;
import com.tebiecloud.store.client.model.vo.WithdrawInfoVO;

import java.util.List;

/**
 * 门店表 服务类
 * @author tebie
 * @date 2019-09-15
 */
public interface StoreService extends IBaseService<Store> {

    /**
     * 获取门店信息
     * @param storeId
     * @return
     */
    StoreVO info(Long storeId);

    /**
     * 获取附近门店
     * @param lng
     * @param lat
     * @return
     */
    List<StoreVO> listNearby(Double lng,Double lat,List<String> storeIds);

    /**
     * 更新门店余额
     * @param storeId
     * @param balance
     * @return
     */
    Store updateBalance(long storeId,int balance);

    /**
     * 获取可提现信息
     * @return
     */
    WithdrawInfoVO infoWithdraw(long storeId);

    /**
     * 条件查询
     * @return
     */
    IPage<StoreVO> listbycondition(int page,int limit,String storeName,String agmName,String storePhone,
                                   String province,String city,String county,Integer professionId,String startTime, String endTime);
}
